class UrlMappings {
    static mappings = {

        // Workaround for client shortcomings
        "/$controller/$action?/$id?.iwg" {
            constraints {
                // apply constraints here
            }
        }

        // Workaround for client shortcomings
        "/$controller/$action?/$id?.html" {
            constraints {
                // apply constraints here
            }
        }
        
        // Workaround for client shortcomings
        "/index.html" (controller: 'widget', action: 'list')

        "/$controller/$action?/$id?" {
            constraints {
                // apply constraints here
            }
        }

        "500" (view: '/error')



        "/" (controller: 'widget', action: 'list')

    }
}
